// 错误通知类型
export enum ShowType {
  NONE = 1,
  MESSAGE_SUCCESS = 2,
  MESSAGE_ERROR = 3,
  MESSAGE_WARNING = 4,
  MESSAGE_INFO = 5,
  NOTIFICATION_SUCCESS = 6,
  NOTIFICATION_ERROR = 7,
  NOTIFICATION_WARNING = 8,
  NOTIFICATION_INFO = 9,
  ALERT_SUCCESS = 10,
  ALERT_ERROR = 11,
  ALERT_WARNING = 12,
  ALERT_INFO = 13,
}

// 订单状态
export const ORDER_STATUS = {
  'WAIT_PAY': { color: 'warning', txt: '未付款' },
  'CANCEL': { color: 'error', txt: '已取消' },
  'PAY': { color: 'success', txt: '已付款' },
  'READY': { color: 'processing', txt: '配货中' },
  'SENDING': { color: 'cyan', txt: '正在配送' },
  'DONE': { color: 'gold', txt: '已完成' },
};


// 订单对应的字符
export const ORDER_ENUM = {
  WAIT_PAY: '0',
  CANCEL: '101',
  PAY: '201',
  READY: '300',
  SENDING: '301',
  COMPLETE: '1',
};

// 用户类型
export const USER_TYPE = {
  0: '系统用户',
  1: '商家',
};

export const STATUS_ENMU = {
  0: '停用',
  1: '启用'
};

export const MARKET_ENUM = {
  'SCROLL': '滚动',
  'ONE': '一列',
  'TWO': '两列',
};


export const NAV_TYPE_ENUM = {
  'navigateTo': '跳转',
  // 'redirectTo': '重定向',
  // 'switchTab': 'tab页面',
  // 'scanCode': '扫码'
}

export enum RequestType {
  NAV = 'navigateTo',
  REQ = 'redirectTo',
  TAB = 'switchTab',
  H5 = 'mobile',
  SCAN = 'scanCode'
}

export enum TargetEnum {
  CATE = 'CATE',
  GOODS = 'GOODS',
  PAGES = 'PAGES',
  SCAN = 'SCAN',
  H5 = 'H5'
}


export const Target =  {
  CATE: '分类', 
  GOODS: '商品',
  PAGES: '页面',
  SCAN: '餐饮扫码',
  // H5: 'H5页面'
}
export const AppGraphQLHost ='/graphql'

export const SHOP_TYPE = {
  'CATERING': '餐饮',
  'OTHER': '其它',
};


export const CAR_TYPE_CARD = {
  'measuredCard': '次卡',
  'yearlyCard': '年卡',
}

export const COUPON_TYPE = [
  { value: 0, label: '全场赠券' },
  { value: 1, label: '会员赠券' },
  { value: 2, label: '购物赠券' },
  { value: 3, label: '注册赠券' },
]


export const PLATFORM_TYPE = [
  { value: 0, label: '全部' },
  { value: 1, label: '小程序' },
  { value: 2, label: 'PC' },
]

export const COUPON_USE_TYPE = [
  { value: 0, label: '全场通用' },
  { value: 1, label: '指定分类' },
  { value: 2, label: '指定商品' },
]


export const YYYY_MM_DD = 'YYYY/MM/DD';

